package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockStoreItem", catalog="Id")
public class TccStockStoreItem extends BaseEntity<TccStockStoreItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="CodeMerge", nameJava="codeMerge", typeDataBase="varchar")
	private String codeMerge;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="IsParent", nameJava="isParent", typeDataBase="int")
	private Integer isParent;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="SourceBid", nameJava="sourceBid", typeDataBase="varchar")
	private String sourceBid;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockStoreItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccStockStoreItem setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccStockStoreItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TccStockStoreItem setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public TccStockStoreItem setName(String name) {
		this.name = name;
		return this;
	}
	public String getCodeMerge() {
		return codeMerge;
	}
	public TccStockStoreItem setCodeMerge(String codeMerge) {
		this.codeMerge = codeMerge;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TccStockStoreItem setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccStockStoreItem setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TccStockStoreItem setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getIsParent() {
		return isParent;
	}
	public TccStockStoreItem setIsParent(Integer isParent) {
		this.isParent = isParent;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TccStockStoreItem setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getSourceBid() {
		return sourceBid;
	}
	public TccStockStoreItem setSourceBid(String sourceBid) {
		this.sourceBid = sourceBid;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TccStockStoreItem setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockStoreItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockStoreItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockStoreItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockStoreItem tccStockStoreItem(
		Long stockControlId,
		String pbid,
		String code,
		String name,
		String codeMerge,
		String vgsbm,
		String chw,
		Integer num,
		Integer isParent,
		String companyVid,
		String sourceBid,
		BigDecimal price,
		Integer status
			) {
		TccStockStoreItem entity = new TccStockStoreItem();
		entity.setStockControlId(stockControlId);
		entity.setPbid(pbid);
		entity.setCode(code);
		entity.setName(name);
		entity.setCodeMerge(codeMerge);
		entity.setVgsbm(vgsbm);
		entity.setChw(chw);
		entity.setNum(num);
		entity.setIsParent(isParent);
		entity.setCompanyVid(companyVid);
		entity.setSourceBid(sourceBid);
		entity.setPrice(price);
		entity.setStatus(status);
		return entity;
	}
}